Skip to content

feat(foreground): Add foreground command#281

Merged
hubertdeng123 merged 21 commits intomainfrom
hubertdeng123/add-foreground-command
Jun 3, 2025
Merged

feat(foreground): Add foreground command#281
hubertdeng123 merged 21 commits intomainfrom
hubertdeng123/add-foreground-command

Conversation

@hubertdeng123
Copy link
Copy Markdown
Member

@hubertdeng123 hubertdeng123 commented May 27, 2025

This adds the devservices foreground command.

If a service is up and running in a mode where there are supervisor programs, the devservices foreground command stops the daemonized supervisor process. It then brings it up in the foreground, allowing for easier interactive debugging.

When the foregrounded process is terminated, the daemonized process is restarted in the background.

Screen.Recording.2025-05-27.at.11.29.15.AM.mov

https://linear.app/getsentry/issue/DI-656/implement-devservices-foreground-command

@hubertdeng123 hubertdeng123 requested a review from IanWoodard May 27, 2025 20:33
@hubertdeng123 hubertdeng123 changed the base branch from main to hubertdeng123/add-supervisor-to-down May 27, 2025 20:35
@codecov
Copy link
Copy Markdown

codecov bot commented May 27, 2025

Codecov Report

Attention: Patch coverage is 96.62921% with 3 lines in your changes missing coverage. Please review.

Project coverage is 95.13%. Comparing base (65db01d) to head (37aa337).
Report is 1 commits behind head on main.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
devservices/commands/foreground.py 96.62% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #281      +/-   ##
==========================================
+ Coverage   95.08%   95.13%   +0.05%     
==========================================
  Files          27       28       +1     
  Lines        2379     2468      +89     
==========================================
+ Hits         2262     2348      +86     
- Misses        117      120       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Base automatically changed from hubertdeng123/add-supervisor-to-down to main June 2, 2025 17:33
Copy link
Copy Markdown
Contributor

@IanWoodard IanWoodard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks pretty solid, had some comments about some edge cases. Good job testing as well!

Copy link
Copy Markdown
Contributor

@IanWoodard IanWoodard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One last thing (utilize constants for colors), but after that, looks good to go

@hubertdeng123 hubertdeng123 merged commit ccca655 into main Jun 3, 2025
15 checks passed
@hubertdeng123 hubertdeng123 deleted the hubertdeng123/add-foreground-command branch June 3, 2025 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants